Approximate Counting with a Floating-Point Counter
نویسنده
چکیده
Memory becomes a limiting factor in contemporary applications, such as analyses of the Webgraph and molecular sequences, when many objects need to be counted simultaneously. Robert Morris [Communications of the ACM, 21:840–842, 1978] proposed a probabilistic technique for approximate counting that is extremely space-efficient. The basic idea is to increment a counter containing the value X with probability 2 . As a result, the counter contains an approximation of lgn after n probabilistic updates stored in lg lgn bits. Here we revisit the original idea of Morris, and introduce a binary floating-point counter that uses a d-bit significand in conjunction with a binary exponent. The counter yields a simple formula for an unbiased estimation of n with a standard deviation of about 0.6 · n2, and uses d + lg lg n bits. We analyze the floating-point counter’s performance in a general framework that applies to any probabilistic counter, and derive practical formulas to assess its accuracy. Department of Computer Science and Operations Research, Université de Montréal. Email: csuros AT iro.umontreal.ca
منابع مشابه
Combinatorial decomposition approaches for efficient counting and random generation FPTASes
Given a combinatorial decomposition for a counting problem, we resort to the simplescheme of approximating large numbers by floating-point representations in order to obtainefficient Fully Polynomial Time Approximation Schemes (FPTASes) for it. The numberof bits employed for the exponent and the mantissa will depend on the error parameter0 < ε ≤ 1 and on the characteristics ...
متن کاملApproximate Counting: A Detailed Analysis
Approximate counting is an algorithm proposed by R. Morris which makes it possible to keep approximate counts of large numbers in small counters. The algorithm is useful for gathering statistics of a large number of events as well as for applications related to data compression (Todd et al.). We provide here a complete analysis of approximate counting which establishes good convergence properti...
متن کاملA Scalable Approximate Model Counter
Propositional model counting (#SAT), i.e., counting the number of satisfying assignments of a propositional formula, is a problem of significant theoretical and practical interest. Due to the inherent complexity of the problem, approximate model counting, which counts the number of satisfying assignments to within given tolerance and confidence level, was proposed as a practical alternative to ...
متن کاملA Digital CMOS Parallel Counter Architecture
The main objective of this paper consists of the state look-ahead path and the counting path. The proposed counter is a single mode counter, which sequences through a fixed set of pre assigned count states, of which each next count state represents the next counter value in sequence. The counter is partitioned into uniform 2-bit synchronous up counting modules. Next state transitions in countin...
متن کاملApproximate counting with m counters: A detailed analysis
The classical algorithm approximate counting was recently modified by Cichon and Macyna: Instead of one counter, m counters are used, and the assignment of an incoming item to one of the counters is random. The parameter of interest is the sum of the values of all the counters. We analyse expectation and variance, getting explicit and asymptotic formulæ.
متن کامل